/**
 * @author SilverBiology, LLC
 * @website http://code.google.com/p/gbif-spreadsheet-processor/
*/
Ext.namespace('GBIF');
Ext.namespace('GBIF.GeoSpatial')

GBIF.GeoSpatial.LayerTypes = function(config){
	
	var combo = new Ext.form.ComboBox({
			fieldLabel: 'Select Types'
		,	typeAhead: false
		,	triggerAction: 'all'
		,	editable: false
   	,	mode: 'local'
		,	itemId:'layerType'
		,	name:'typeCombo'
		,	emptyText: 'Select Layer'
		,	valueField: 'typeId'
		,	displayField: 'displayText'
		,	store: new Ext.data.ArrayStore({
					fields: [
							'typeId'
						,	'displayText'
					]
				,	data: [
							[1, 'WFS']
						, [2, 'WMS']
						,	[3, 'GeoRss']
						,	[4, 'KML']
						,	[5, 'GBIF Checklist Bank']
					]
    	})
	});
	
	Ext.apply(this,config,{	
			bodyStyle:"padding:15px"	
		,	items:[{
					xtype: 'displayfield'
				,	fieldLabel: 'Directions'
				,	value: 'These are Map Layers'
				,	height: 40
     	},	combo ]	
		,	border: false
	});

	GBIF.GeoSpatial.LayerTypes.superclass.constructor.call(this, config)
}

Ext.extend(GBIF.GeoSpatial.LayerTypes,Ext.FormPanel, {});